﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 料品组间转换率AITDTO DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class ItemConvertRatioAITDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public ItemConvertRatioAITDTOData()
		{
			initData();
		}
		private void initData()
		{
		
		
		
					Ratio=0m; 

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        			if (this.ItemMaster != null) 
			{
				this.ItemMaster.DoSerializeKeyList(dict);
			}
	        			if (this.FromUOM != null) 
			{
				this.FromUOM.DoSerializeKeyList(dict);
			}
	        			if (this.ToUOM != null) 
			{
				this.ToUOM.DoSerializeKeyList(dict);
			}
	        
		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public ItemConvertRatioAITDTOData(  ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData itemMaster  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData fromUOM  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData toUOM  , System.Decimal ratio  )
		{
			initData();
			this.ItemMaster = itemMaster;
			this.FromUOM = fromUOM;
			this.ToUOM = toUOM;
			this.Ratio = ratio;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 料品
		/// 料品组间转换率AITDTO.Misc.料品
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_itemMaster ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ItemMaster
		{
			get	
			{	
				return m_itemMaster ;
			}
			set	
			{	
				m_itemMaster = value ;	
			}
		}
			
		

		/// <summary>
		/// 从单位
		/// 料品组间转换率AITDTO.Misc.从单位
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_fromUOM ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData FromUOM
		{
			get	
			{	
				return m_fromUOM ;
			}
			set	
			{	
				m_fromUOM = value ;	
			}
		}
			
		

		/// <summary>
		/// 到单位
		/// 料品组间转换率AITDTO.Misc.到单位
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_toUOM ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ToUOM
		{
			get	
			{	
				return m_toUOM ;
			}
			set	
			{	
				m_toUOM = value ;	
			}
		}
			
		

		/// <summary>
		/// 转换率
		/// 料品组间转换率AITDTO.Misc.转换率
		/// </summary>
		private System.Decimal m_ratio ;
		[DataMember(IsRequired=false)]
		public System.Decimal Ratio
		{
			get	
			{	
				return m_ratio ;
			}
			set	
			{	
				m_ratio = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
								
		#endregion 
	} 	
}
